package top.toptimus.dto.qcDto;

import lombok.Data;
import lombok.NoArgsConstructor;
import top.toptimus.util.DateTimeUtil;

import java.util.Date;

/**
 * 量体值数据
 *
 * @author gaoyu
 */
@NoArgsConstructor
@Data
public class StyleFitEntity {
    private Long styleFitId;

    private Integer styleId;

    private String phaseCd;

    private String styleSizeGroupCd;

    private String styleSizeCd;

    private String itemCd;

    private String itemValue;

    private String itemValueMtm;

    private String fitValue;

    private String fmValue;

    private String fitTolValue;

    private String fitRealValue;

    private String inValue;

    private String outValue;

    private Date createDate;

    private Date updateDate;

    private Long createUser;

    private Long updateUser;

    private String remark;

    public StyleFitEntity(
            Integer style_fit_id,
            Integer style_id,
            String phase_cd,
            String style_size_group_cd,
            String style_size_cd,
            String item_cd,
            String item_value,
            String item_value_mtm,
            String fit_value,
            String fit_tol_value,
            String fit_real_value,
            String remark,
            String create_date,
            String update_date,
            String in_value,
            String out_value
    ) {
        this.styleFitId = Long.valueOf(style_fit_id);
        this.styleId = style_id;
        this.phaseCd = phase_cd;
        this.styleSizeGroupCd = style_size_group_cd;
        this.styleSizeCd = style_size_cd;
        this.itemCd = item_cd;
        this.itemValue = item_value;
        this.itemValueMtm = item_value_mtm;
        this.fitValue = fit_value;
        this.fitTolValue = fit_tol_value;
        this.fitRealValue = fit_real_value;
        this.remark = remark;
        this.createDate = DateTimeUtil.strToDateLong(create_date);
        this.updateDate = DateTimeUtil.strToDateLong(update_date);
//        this.createUser = Long.valueOf(create_user);
//        this.updateUser = Long.valueOf(update_user);
        this.inValue = in_value;
        this.outValue = out_value;
    }
}